package com.cman777.springc.common.bean.enums;

import com.cman777.springc.common.bean.Iface.ResultCodeEnumI;
import lombok.Getter;

/**
 * @author chenzhicong
 * @time 2019/11/7 19:57
 * @description
 */
@Getter
public enum BaseResultCodeEnum implements ResultCodeEnumI {
    SUCCESS("10000", "成功"),

    ERROR("10001", "失败"),

    NET_ERROR("10002", "网络异常"),

    SYSTEM_ERROR("10003", "系统异常");
    private final String code;
    private final String message;

    BaseResultCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
